<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Empresa de Servcios Multiples S.A.</title>
	<link id="htmlLinkCss" media="all" type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/styles.css">
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/calendarDateInput.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/funciones.js"></script>
    </head>
    <body>
        <div class="HomepageContainer">
            <table cellpadding="0" cellspacing="0" width="762" border="0" >
            <tr><td colspan="3" class="interface_top"></td></tr>
            <tr><td class="interface_left" rowspan="3" width="6"></td>
                <td class="HeaderPane">

                <div class="Logo"><img src="${pageContext.request.contextPath}/images/ClienteLogo.png" alt="" border="0"></div>
                <div class="GlobalNav">
<!--                    <a href="index.htm">Inicio</a><img src="${pageContext.request.contextPath}/images/globalnavbullet.gif" alt="" border="0">-->
                    <a href="login.htm">Logout</a>
                </div>

                <div class="DelayText">DESARROLLO PARA ENTORNO WEB</div>
                </td>
                <td class="interface_right" rowspan="3" width="6"></td></tr>
            <tr><td align="center" class="MainNavigation"></td></tr>
            <tr><td width="750" height="570" class="HomePageContainer" align="center" valign="top">
                    <table>
                    <tr><td>
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="Banner" width="740" height="85">
                      <param name="movie" value="images/Banner.swf">
                      <param name="quality" value="high">
                      <param name="bgcolor" value="#EAE2CD">
                    </object>
                        </td>
                    </tr></table>
                    <table width="100%">
                    <tr >
                            <td><p align="left"><b><font style="">BIENVENIDO: </font></b> ${usuario.nombreUsuario} ${usuario.apellidoUsuario}</td>
                            <td><p align="right"> Hoy es: <c:out value="${now}"/></p></td>
                        </tr>
                    </table>
                    
                    
                    <img src="${pageContext.request.contextPath}/images/intdiv.gif" alt="" width="100%" border="0"><br>
                    <table class="cuerpo">
                        <tr><td class="cuerpotd">
                        <!-- Cuerpo -->
                            <h1>Mis Solicitudes</h1>

                            
                            <table border="0" cellspacing="0" cellpadding="0" style="width:100%">
                                <tr>
                                    <td style="width:100%; white-space:nowrap">
                                        <form:form commandName="solicitud" method="POST" id="SolicitudClienteListForm">
                                            <input type="hidden" name="metodo" value="buscar"/>
                                        <table style="width:700px">

                                            <tr>
                                                <td>
                                                    Tipo de Servicio:
                                                    <form:select path="idServicio">
                                                        <form:option value="0" label="[seleccione una opción]" />
                                                        <form:options items="${serviciosList}" itemValue="idServicio" itemLabel="descripcion" />
                                                    </form:select>
                                                    <input type="submit" value="Buscar" name="Filtrar" class="boton">
                                                </td>
                                            </tr>
                                        </table>
                                        </form:form>

                                          <table class="grid">
                                            <tr><th>Nro de Solicitud</th>
                                                <th>Fecha de Solicitud</th>
                                                <th>Nombre Cliente</th>
                                                <th>Servicio</th>
                                                <th>Descripción</th>
                                                <th>Costo</th>
                                                <th>Estado</th>
                                            </tr>
                                             <c:forEach items="${voList}" var="objsol">
                                                <tr>
                                                    <td>${objsol.idSolicitud}</td>
                                                    <td>${objsol.fechaSolicitud}</td>
                                                    <td>${objsol.usuario.nombreUsuario} ${objsol.usuario.apellidoUsuario}</td>
                                                    <td>${objsol.servicio.descripcion}</td>
                                                    <td>${objsol.problema}</td>
                                                    <td>${objsol.costoSolicitud}</td>
                                                    <td>${objsol.estado}</td>
                                                </tr>
                                            </c:forEach>
                                        </table>
                                    </td>
                                </tr>
                            </table><br>
                            <form:form commandName="solicitud" method="POST" id="SolicitudClienteForm">
                                <input type="hidden" name="metodo" value="redireccionar"/>
                                <input type="submit" value="Nueva Solicitud" name="Nuevo" class="botongrande" />
                            </form:form>
                         <!-- fin de cuerpo -->
                         </td>
                        </tr>
                    </table>
                </td></tr>
           <tr><td colspan="3" class="interface_bottom"></td></tr>
           <tr><td colspan="3" align="center" valign="top" bgcolor="#eee7d7">
               <FONT color="#999999" size="1">©Copyright © 2010. Todos los Derechos Reservados. </FONT>
               </td></tr>
           </table>
        </div>
    </body>
</html>








